/*
 * InfosetSource.java
 *
 * Created on September 5, 2006, 4:14 PM
 *
 * (C) 2006 R. Alexander Milowski
 */

package org.infoset.xml.jaxp;

import java.net.URI;
import javax.xml.transform.Source;
import org.infoset.xml.Parent;

/**
 *
 * @author alex
 */
public class InfosetSource implements Source{

   Parent node;
   String systemId;
   /** Creates a new instance of InfosetSource */
   public InfosetSource(Parent node) {
      this.node = node;
      URI baseURI = node.getBaseURI();
      this.systemId = baseURI==null ? null : baseURI.toString();
   }
   
   public Parent getNode() {
      return node;
   }
   
   public String getSystemId() {
      return systemId;
   }
   
   public void setSystemId(String systemId) {
      this.systemId = systemId;
   }
   
}
